# 构造方法
# 设计一个类
class Student:
    def __init__(self,name,sex,age):
        self.name = name
        self.sex = sex
        self.age = age
        print(f"创建一个{self.name}对象")
student = Student("紫嫣", "女", 18)

